<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <input type="text" v-model="num">
    <input type="button" value="点我" v-on:click="incr">
    <h1>Hello {{name}},有{{num}}位用户}</h1>
</div>
</body>
<script src="node_modules/vue/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            name: "World",
            num: 100
        },
        methods: {
            incr() {
                this.num++;
            }
        }
    })
</script>
</html>